import createAPI from 'shared/restClient/CreateAPI';
import joinUrl from 'shared/utils/joinUrl';

export const fetchBannerList = createAPI('post', 'jiekec/index.php?route=catalog/banner/bannerlist', false);
export const fetchHomereCommendList = createAPI('post', 'jiekec/index.php?route=catalog/home/homerecommendlist', false);
export const fetchPromotionList = createAPI('post', 'jiekec/index.php?route=catalog/promotion', false);
export const fetchHomeCategoryProductlist = createAPI('post', 'jiekec/index.php?route=catalog/home/homecategoryproductlist', false);

export const fetchHomeInfolist = createAPI('post', 'jiekec/index.php?route=account/information/infolist', false);
export const fetchHomeInfodetail = createAPI('post', 'jiekec/index.php?route=account/information/infodetail', false);
export const fetchActivitylist = createAPI('post', 'jiekec/index.php?route=catalog/activity/activitylist', false);
export const activitDetailAPi = createAPI('post', '/jiekec/index.php?route=catalog/activity/activityinfo', false);


